<template>
  <div id="scroll-board">
    <dv-scroll-board :config="config" />
  </div>
</template>

<script>
export default {
  name: 'ScrollBoard',
  data () {
    return {
      config: {
        header: ['时间', '文档名称', '版本'],
        data: [
          ['2022-09-09 19:25:00', 'XXXX文档.doc',  'xxxxxxx'],
          ['2022-09-09 17:25:00', 'XXXX协议.doc',  'xxxxxxx'],
          ['2022-09-09 16:25:00', 'XXXX开发文档.doc', 'xxxxxxx'],
          ['2022-08-10 15:25:00', 'XXXX通讯协议.doc',  'xxxxxxx'],
          ['2022-08-30 14:25:00', 'XXXX数据协议.pdf', 'xxxxxxx'],
          ['2022-08-30 13:25:00', 'XXXX数据协议.pdf', 'xxxxxxx'],
          ['2022-07-22 12:25:00', 'XXXX检测定义.docx',  'xxxxxxx'],
          ['2022-03-03 11:25:00', 'XXXX需求说明书.docx', 'xxxxxxx'],
          ['2022-07-25 10:25:00', 'XXXX规格说明书.docx', 'xxxxxxx'],
          ['2022-01-26 09:25:00', 'XXXXPRD.docx','xxxxxxx']
        ],
        index: true,
        columnWidth: [50, 170, 300],
        align: ['center'],
        rowNum: 7,
        headerBGC: '#1981f6',
        headerHeight: 45,
        oddRowBGC: 'rgba(0, 44, 81, 0.8)',
        evenRowBGC: 'rgba(10, 29, 50, 0.8)'
      }
    }
  }
}
</script>

<style lang="less">
#scroll-board {
  width: 50%;
  box-sizing: border-box;
  margin-left: 20px;
  height: 100%;
  overflow: hidden;
}
</style>
